package com.lufan.data.dto;

import lombok.Data;
import java.util.List;

@Data
public class VideoDownLoadDto {
    private String bvid;
    private String cid;
    private Integer qn = 80;
    private Integer fnval = 16;
    private List<VideoInfo> videoList;

    @Data
    public static class VideoInfo {
        private String bvid;
        private String cid;
        private Integer qn = 80;
        //视频流格式，暂时默认 DASH
        private Integer fnval = 16;

        @Override
        public String toString() {
            return String.format("VideoInfo{bvid='%s', cid='%s', qn=%d, fnval=%d}", 
                bvid, cid, qn, fnval);
        }
    }

    @Override
    public String toString() {
        return String.format("VideoDownLoadDto{bvid='%s', cid='%s', qn=%d, fnval=%d, videoList=%s}", 
            bvid, cid, qn, fnval, videoList);
    }
}
